package com.jishuo.nontax.view.controller;

import com.jishuo.base.annotation.UserAuthority;
import com.jishuo.base.bean.BaseResult;
import com.jishuo.nontax.bean.vo.WaitaffirmPayInfoVO;
import com.jishuo.nontax.bfc.service.WaitaffirmPayInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @auther dinggaofei
 * @Date 2023/3/27 11:45
 */
@Slf4j
@Controller
@RequestMapping(value = "/view/waitaffirmpayinfo", name = "99支出")
@UserAuthority(menu = {"view/waitaffirmpayinfo"})
public class WaitAffirmPayInfoViewController {

    private String prefix = "view/";
    @Resource
    private WaitaffirmPayInfoService waitaffirmPayInfoService;

    @RequestMapping(value = {"waitaffirmpayinfoview", "waitaffirmpayinfoview/{page}"}, name = "99支出")
    public String index(@PathVariable(required = false) String page) {
        return prefix + ((page == null) ? "waitaffirmpayinfoview" : page);
    }

    @ResponseBody
    @RequestMapping(value = "saveOtherACview",name = "其他支出")
    public BaseResult saveOtherZCview(WaitaffirmPayInfoVO vo) {
        return waitaffirmPayInfoService.setWaitaffirmPayInfo1(vo);
    }



}
